package exception;

public class Exception1 {
    public static void main(String[] args) {//测试finally块
        System.out.println(finallyTest());
    }

    public static int finallyTest(){
        try {
            System.out.println("抛出一个异常");
            return 1;
        } catch (Exception e) {
            System.out.println("进入catch块");
            return 0;
        }finally {
            System.out.println("进入finally块");
        }
    }
}
